<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
		<script type="text/javascript" src="../../js/boot.js"></script>
		<script type="text/javascript" src="../../js/lib/jquery.form.js"></script>
		<title></title>
	</head>

	<body>
		<form id="upload" action="http://localhost/file/upload.do" method="post" enctype="multipart/form-data">
			文件：<input class="mini-htmlfile" name="Fdata" limitType="*.xls;*.xlsx" />
			<br />
			<input class="mini-hidden" name="admin" value="test" />
			<button type="submit">上传</button>
		</form>
		<button id="btnButton" type="button">提交2</button>
	</body>

	<script type="text/javascript">
		miniInit();

		function setData(data) {
			// mini.get("tableName").setValue(data);
			// search();
		}

		$("#btnButton").click(function() {
			$("#upload").ajaxSubmit(function() {
				alert("提交成功2");
			});
			return false;
		});

		function upload() {
			debugger
			var form = $("#upload");
			// form.action = ctx + "/file/upload.do";
			form.submit(function(e) {
				debugger
				alert("Submitted");
			});

		}

		function CloseWindow(action) {
			if(window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
			else window.close();
		}

		function onOk() {
			CloseWindow("ok");
		}

		function onCancel() {
			CloseWindow("cancel");
		}
	</script>

</html>